/*
 * blogconcern.cpp
 *
 *  Created on: Jul 30, 2010
 *      Author: nintang
 */

#include "blogconcern.h"

blogconcern::blogconcern(QWidget *parent)
    : QWidget(parent)
{
	//setWindowFlags(Qt::WindowSoftkeysVisibleHint);
	QLabel *labelConcern=new QLabel(QApplication::translate("bloghomepage", "                      I concern", 0, QApplication::UnicodeUTF8),this);
	labelConcern->setGeometry(QRect(0,0, 360, 54));
	labelConcern->setStyleSheet("background-image: url(:/images/23.png);");	
	QListWidget *listWidget=new QListWidget(this);
	listWidget->setFixedWidth(360);
	listWidget->setMinimumHeight(526);
	listWidget->move(0,54);
	listWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
	//listWidget->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
	listWidget->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);	
	QListWidgetItem *listitem1=new QListWidgetItem(listWidget);
	listitem1->setSizeHint(QSize(360,77)); 
	bloglist *bloglist1=new bloglist(1,0);
	listWidget->setItemWidget(listitem1,bloglist1);
	QListWidgetItem *listitem2=new QListWidgetItem(listWidget);
	listitem2->setSizeHint(QSize(360,77)); 
	bloglist *bloglist2=new bloglist(2,0);
	listWidget->setItemWidget(listitem2,bloglist2);
	QListWidgetItem *listitem3=new QListWidgetItem(listWidget);
	listitem3->setSizeHint(QSize(360,77)); 
	bloglist *bloglist3=new bloglist(3,0);
	listWidget->setItemWidget(listitem3,bloglist3);
	QListWidgetItem *listitem4=new QListWidgetItem(listWidget);
	listitem4->setSizeHint(QSize(360,77)); 
	bloglist *bloglist4=new bloglist(4,0);
	listWidget->setItemWidget(listitem4,bloglist4);
	QListWidgetItem *listitem5=new QListWidgetItem(listWidget);
	listitem5->setSizeHint(QSize(360,77)); 
	bloglist *bloglist5=new bloglist(5,0);
	listWidget->setItemWidget(listitem5,bloglist5);
	QListWidgetItem *listitem6=new QListWidgetItem(listWidget);
	listitem6->setSizeHint(QSize(360,77)); 
	bloglist *bloglist6=new bloglist(6,0);
	listWidget->setItemWidget(listitem6,bloglist6);
	QListWidgetItem *listitem7=new QListWidgetItem(listWidget);
	listitem7->setSizeHint(QSize(360,77)); 
	bloglist *bloglist7=new bloglist(7,0);
	listWidget->setItemWidget(listitem7,bloglist7);
	QListWidgetItem *listitem8=new QListWidgetItem(listWidget);
	listitem8->setSizeHint(QSize(360,77)); 
	bloglist *bloglist8=new bloglist(8,0);
	listWidget->setItemWidget(listitem8,bloglist8);
	QListWidgetItem *listitem9=new QListWidgetItem(listWidget);
	listitem9->setSizeHint(QSize(360,77)); 
	bloglist *bloglist9=new bloglist(9,0);
	listWidget->setItemWidget(listitem9,bloglist9);
	QListWidgetItem *listitem10=new QListWidgetItem(listWidget);
	listitem10->setSizeHint(QSize(360,77)); 
	bloglist *bloglist10=new bloglist(10,0);
	listWidget->setItemWidget(listitem10,bloglist10);

	//back = new QAction(tr("Back"), this);
	//back->setSoftKeyRole(QAction::NegativeSoftKey);
	//connect(back, SIGNAL(triggered()), this, SLOT(backtobloghomepage()));
	//addAction(back);		
	QPushButton *pushButtonRight=new QPushButton(this);
	pushButtonRight->setGeometry(QRect(0, 580, 180, 60));	
	pushButtonRight->setStyleSheet("border-image:url(:/images/56.png);border:0px;");
	QPushButton *pushButtonLeft=new QPushButton(this);
	pushButtonLeft->setGeometry(QRect(180, 580, 180, 60));	
	pushButtonLeft->setStyleSheet("border-image:url(:/images/57.png);border:0px;");
	connect(pushButtonLeft, SIGNAL(clicked()), this, SLOT(backtobloghomepage()));				
}

blogconcern::~blogconcern()
{

}
void blogconcern::backtobloghomepage()
{
    bloghomepage *w=new bloghomepage(1,0);
    w->showFullScreen(); 
    this->~blogconcern();
}

